//
//  MessageDataSource.h
//  tcpoctest
//
//  Created by apple on 13-7-11.
//  Copyright (c) 2013年 gump. All rights reserved.
//

@interface MessageDataSource : NSObject
{
    NSMutableArray          *MessageArr;
    pthread_mutex_t         mutexMessage;
    NSMutableDictionary     *MessageDic;
}

-(int)GetMagArrCount;
-(void)DelAllMsgArr;
-(void)addMsg:(XMMessageInfo *)xmminfo;
-(void)DelMsg:(XMMessageInfo *)xmminfo;
-(XMMessageInfo *)getMsgArrObject:(int)iindex;

-(XMMessageInfo *)getMsgInfoByID:(NSString *)strid;

-(NSString *)getMsgID;

-(void)MsgSortArr;

@end
